import {
  defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'

export default defineConfig({
  plugins: [
    uni()
  ],
  server: {
    port: 8000,
    proxy: {
      '/storage-miniapp': {
        target: 'http://nsmmsqc.nsioi.com', // 目标服务
        // rewrite: path => path.replace(/^\/xapi/, ''),
        changeOrigin: true
      }
    }
  },  
  // base: '/wechat/',
})